package com.ztools.pc.service.information;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ztools.common.model.pc.information.Student;
import com.ztools.common.util.common.PageUtil;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Author:一口香菜
 * @Date: 2023/3/19  12:39
 * @Version 1.0
 */
public interface StudentService extends IService<Student> {

    /**
     * 分页查询
     *
     * @param pageUtil pageUtil
     * @return
     */
    Page<Student> findList(PageUtil<Student> pageUtil);

    /**
     * 添加
     *
     * @param student student
     * @return
     */
    boolean add(Student student);

    /**
     * 删除
     *
     * @param student student
     * @return
     */
    boolean delete(Student student);

    /**
     * 修改
     *
     * @param student student
     * @return
     */
    boolean update(Student student);

    /**
     * 根据条件查询
     *
     * @param student student
     * @return
     */
    List<Student> findByObject(Student student);

    /**
     * 导出
     *
     * @param response response
     * @param student  student
     */
    void exportExcel(HttpServletResponse response, Student student);
}
